body {
    font-family: var(--sans);
}

#blog-content-container{
    display:flex;
    flex-direction:row;
    min-height:90vh;
}

#side-container {
    width: 260px;
    display:flex;
    flex-direction:column;
    flex-shrink: 0;
    position: sticky;
    top: 0rem;
    height: 100vh;
    background-color:#1e1e1e;
    opacity:100%;
    transition: transform 1s ease-out, opacity 1s ease-out;
}

#side-container.hidden {
    transform: translateX(-100%);
    opacity: 0;
}

#side-container-inside {
    position:sticky;
    top: 10px;
    display:flex;
    flex-direction:column;
    gap:4rem;
    align-items:center;
    padding: 1.25rem 1rem;
}

#search-box {
    width: 100%;
    border: 1px solid var(--paper-warm);
    background: var(--white);
    color: var(--ink);
    padding: 3px;
    outline: none;
    font-family: var(--mono);
}

#search-box:focus {
    /* border: 1px solid var(--ink); */
    box-shadow: inset 2px 2px var(--paper-warm), inset -2px -2px var(--paper-warm);
}

/* STYLE FOR THE FEATURE CARD */

#featured-card{
    background: var(--butter-pale);
    border: 1px solid var(--butter);
    box-shadow: 5px 5px var(--ink);
    padding: 1rem;
    cursor: pointer;
}

#featured-card:hover{
    background: var(--peach-pale);
    border: 1px solid var(--peach);
    transition: background ease-in 0.3s, border ease-in 0.3s;
}


#featured-card:hover #featured-label{
    border-bottom: 2px solid var(--peach);
    transition: border-bottom ease-in 0.3s;

}

#featured-label{
    font-family: var(--mono);
    font-size:12px;
    opacity: 70%;
    border-bottom: 2px solid var(--butter);
    text-transform:uppercase;
    margin: 0 auto;
}


#featured-title{
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

/* STYLE FOR THE LIST OF POSTS */

#post-list{
    list-style:none;
    padding: 0;
}

#post-list-scroll{
    overflow-y: auto;
    max-height: 200px;
}

.sidebar-post-item {
    border-bottom: 1px solid var(--paper-rule);
    padding: 1rem;
    cursor: pointer;
    color: var(--paper-warm);
    transition: background 0.3s;
}

.sidebar-post-item:hover{
    background: rgba(231,143,160,0.6);
    color:var(--ink);
}

.sidebar-post-item.active{
    background: var(--blush);
    color:var(--ink);
}

.sidebar-post-item .post-title{
    font-weight:600;
}

/* TAG STYLING */

#tag-list{
    display: flex;
    flex-wrap:wrap;
    width:100%;
    max-height: 170px;
    gap: 8px;
}

.tag-btn{
    background-color: var(--paper);
    border: 2px solid var(--peach);
    border-radius: 1rem;
    padding: 0 1rem 0 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.tag-btn:hover{
    background: var(--peach-pale);
}

/* MAIN CONTENT */

#main-content{
    width:100%;
    height:90%;
    overflow-y:auto;
    display:flex;
    justify-content:center;
}

#post-content{
    width: 65vw;
    overflow-x:visible;
    height: fit-content;
    margin: 0 auto;
    padding: 1rem;

}

/* POST STYLING */

 /* Post content typography */
 
#post-content h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    line-height: 1.25;
    font-family: var(--serif);
}

#post-content h2 {
    font-size: 1.25rem;
    margin: 1.75rem 0 0.5rem;
}

#post-content h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.4rem;
}

#post-content p {
    margin-bottom: 2em;
    line-height: 1.75;
}

#post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    display: block;
}

#post-content a {
    color: #2c2c2c;
}

#post-content ul,
#post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1em;
}

#post-content li {
    margin-bottom: 0.3em;
    line-height: 1.7;
}

#post-content blockquote {
    border-left: 3px solid #bbb;
    padding-left: 1rem;
    color: #666;
    margin: 1.25rem 0;
}

#post-content code {
    background: #e8e4db;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}

#post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem 1.25rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}

#post-content pre code {
    background: none;
    padding: 0;
}


.state-message {
    color: #888;
    font-size: 0.95rem;
    padding: 2rem 0;
}

.post-block-meta .tag-inline {
    font-size: 0.75rem;
    font-family: var(--mono);
    border: 1px solid var(--peach);
    border-radius: 1rem;
    padding: 0 1rem 0 1rem;
    margin: 0 0.5rem 0 0;
    cursor: pointer;
    transition: all 0.3s;
}

.post-block-meta .tag-inline:hover {
    background: var(--ink);
    color: var(--peach);
    border-color: var(--ink);
}

.post-block {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ink);
}

.post-block:last-child {
    border-bottom: none;
}

.post-block-meta {
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* LINK STYLING */
/* POPUP NOTE */
.popup-link{
    position: relative;
}

.popup-link:hover{
    color: var(--blush) !important;
}

.popup-link:hover .popup-link-div{
    display: flex;
    justify-content:center;
    flex-direction:column;
    color:var(--ink);

}

.popup-link-div{
    font-family: var(--mono) !important;
    font-size:smaller;
    font-weight:bold;
    background-color: var(--butter);
    box-shadow: 0px 3px 0px var(--ink);
    border-radius: 5px;
    position:absolute;
    display: none;
    /* text-wrap-mode: nowrap; */
    width:200px;
    height: fit-content;
    /* right: 100%; */
    transform: translateX(50%);
    bottom: calc(100% + 10px);
    padding: 1rem;
    justify-content:center;

}

/* INTERACTIVE LINK BASE */

.interactive-link{
    position:relative;
}

.interactive-link:hover{
    color: var(--blush) !important;
}
.interactive-link:hover .interactive-link-div{
    display: flex;
    justify-content:center;
    flex-direction:column;
    color:var(--ink);
}

.interactive-link-div{
    font-family: var(--mono) !important;
    font-weight:bold;
    font-size:smaller;
    background-color: var(--peach);
    box-shadow: 1px 1px var(--ink);
    border-radius: 5px;
    position:absolute;
    display: none;
    text-wrap-mode: nowrap;
    max-width: 800px;
    height: fit-content;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% + 10px);
    padding: 1rem;
    justify-content:center;
}

/* https://projects.verou.me/bubbly/ */
.interactive-link-div::after{
    content: '';
    position: absolute;
    bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: var(--peach);
	border-bottom: 0;
	margin-left: -10px;
	margin-bottom: -10px;
}

.link-bubble-source{
    font-size:1rem !important;
    color: #494743 !important;
    letter-spacing: 0.25px;
}

.link-bubble-title{
    font-weight: bold;
    font-style:italic;

}


/* SIDEBAR TOGGLE */
#sidebar-toggle {
    position: fixed;
    bottom: 1.5rem;
    left: 1rem;
    z-index: 300;
    background: var(--ink);
    color: var(--paper);
    border: 1px var(--paper);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

